﻿
using System ;

using MskEdit.Sdk ;


namespace MskEdit.Dxf.Model
{

    public class DxfClasses : DxfStructBase
    {
        private Lazy<DxfClass[]>  classes_ ;


        public DxfClasses( string[] allLines, SdkSubrange subrange ) : base( allLines, subrange ) {
            classes_ = new Lazy<DxfClass[]>( () => { return DxfCollection<DxfClass>.getItems( allLines, subrange, DxfClass.TryFrom ) ; } ) ;
        }
        
        
        public DxfClass[] Classes {
            get { return classes_.Value ; }
        }
    }
}
